<?php
    if ( ! defined('BASEPATH'))
        exit('No direct script access allowed');
    class Pfmis extends CCMIS_Controller
    {
        public function __construct()
        {
            parent::__construct();
        }
        public function index()
        {
            $username = $this->session->userdata('username');
            if($username)
                $this->dashboard();
            else
                $this->home();
        }
        public function home() //home page of pfmis
        {
            $this->setup_view('pfmis/pfmis/facility/view');
        }
        public function dashboard() //admin page of pfmis
        {
            $this->setup_view('pfmis/pfmis/dashboard');
        }
    }
?>